cmake_minimum_required(VERSION 3.10)
project(cpp_module_exp)

set(CMAKE_CXX_STANDARD 14)
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/bin")
set(LIBRARY_OUTPUT_PATH  "${CMAKE_CURRENT_SOURCE_DIR}/lib")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")


find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})


add_executable(center_crop_ut center_crop_ut.cpp )
target_link_libraries(center_crop_ut ${OpenCV_LIBRARIES})

find_package(Boost COMPONENTS system filesystem thread REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIR})

#add_subdirectory(protobuf_cpp)
#add_subdirectory(proto2_exp)

#add_subdirectory(muduo_wrap)
#add_subdirectory(net)

add_subdirectory(cpp_virtual)
add_subdirectory(cpp_dl)
add_subdirectory(boost_thread_pool)
add_subdirectory(boost_scope_lock)
add_subdirectory(yml)

add_subdirectory(valgrind)
add_subdirectory(ftplib)
add_subdirectory(vlc_cap)

add_subdirectory(timeElapse)
add_subdirectory(boost_funtion)
add_subdirectory(cvUtils)
add_subdirectory(boost_thread)
add_subdirectory(json)
add_subdirectory(formatTime)
add_subdirectory(raw_funptr)

add_subdirectory(tmpExp)




set(CMAKE_SKIP_BUILD_RPATH FALSE)                 # 编译时加上RPATH
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)         # 编译时RPATH不使用安装的RPATH
set(CMAKE_INSTALL_RPATH "xxxxx")                       # 安装RPATH为空
message(status "${CMAKE_INSTALL_RPATH}")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)      # 安装的执行文件不加上RPATH

message(status "${CMAKE_INSTALL_RPATH}")